package com.gqz.equip.vo;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * 能源-盘点任务设备表
 */


@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "EnStockTaskEquipVo", description = "能源-盘点任务设备表")
public class EnStockTaskEquipVo implements Serializable {


    @SchemaProperty(name = "主键")
    private String id;

    @SchemaProperty(name = "任务编号")
    private String taskNo;

    @SchemaProperty(name = "设备编码")
    private String equipNo;

    @SchemaProperty(name = "是否删除")
    private String isDel;

    @SchemaProperty(name = "库存数")
    private String stockNum;

    @SchemaProperty(name = "实际数")
    private String actualNum;

    @SchemaProperty(name = "设备名称")
    private String equipName;

    @SchemaProperty(name = "设备类型编码")
    private String equipTypeNo;

    @SchemaProperty(name = "设备类型")
    private String equipTypeName;

    @SchemaProperty(name = "盘点方式编码(1扫码2手动)")
    private String stockMethodNo;

    @SchemaProperty(name = "盘点方式")
    private String stockMethodName;

    @SchemaProperty(name = "出厂编号")
    private String factoryNo;

    @SchemaProperty(name = "是否已检测")
    private String isDetect;

    @SchemaProperty(name = "工单运行状态名称")
    private String runStatusName;

    @SchemaProperty(name = "详情描述信息")
    private String detailedDescription;

    @SchemaProperty(name = "创建人")
    private String creator;

    @SchemaProperty(name = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(name = "creatTime", format = "yyyy-MM-dd HH:mm:ss")
    private Date creatTime;

    @SchemaProperty(name = "计量方式编码")
    private String meterTypeNo;

    @SchemaProperty(name = "计量方式名称")
    private String meterTypeName;

    @SchemaProperty(name = "规格")
    private String equipSpecification;

    @SchemaProperty(name = "型号")
    private String model;

    @SchemaProperty(name = "pt")
    private String pt;

    @SchemaProperty(name = "ct")
    private String ct;

    @SchemaProperty(name = "是否检测 0否1是")
    private String ifTest;

    @SchemaProperty(name = "厂家名称")
    private String factoryName;

    @SchemaProperty(name = "运行状态")
    private String runState;

}
